cmake_minimum_required(VERSION 3.0.0)
project(chat)

# 配置编译选项
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -g)

# 配置 最终的可执行文件输出的路径
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

# 配置 头文件的搜索路径
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/include/server)
include_directories(${PROJECT_SOURCE_DIR}/include/server/db)    # 数据库qpi文件
include_directories(${PROJECT_SOURCE_DIR}/include/server/redis) # redis qpi文件
include_directories(${PROJECT_SOURCE_DIR}/include/server/model) # 数据库操作文件
include_directories(${PROJECT_SOURCE_DIR}/thirdpart)

# 加载子目录
add_subdirectory(src)